Fix for MSYS/MXE build