std::nan not available on mac