fix ambiguous std::fabs and the compile on windows