Move libm replacements to new header libm.h