make it work on MSYS/MinGW (Windows)