Recent developments in second order necessary optimality conditions