Abstract out libm link for OSX/Windows