fix ubuntu precise mingw math.h problems