fix #4050: macosx & std::hypot