CMake: fix Win32 MinGW/MSVC detection
CMake Win32 MinGW: remove unused libm dependency