Use cmath instead of math.h (don't work in VS2010 and better for c++)