disambiguate pow(double, double)
remove unwanted whitespace
fix mingw compilation