Fix windows cmake build

Don't link libm for MSVC