changed c code standard to gnu99 to allow M_PI et c to be defined