fix M_PI_2 error in VS2010

define _USE_MATH_DEFINES
include math.h