Fix double constatns

some constants were double, M_PI was sometimes inherided as double

added -Wdouble-promotion to makefile warnings