Fixes modern C++ compiler ambiguity problems with conflicting cmath and math implementations in global namespace.