Fix Windows build by moving non-standard cmath entries to a separate namespace.