use -std=gnu99 instead of -std=c99

also get rid of -DM_PI="3.14.." for mingw32