work to make it compatible with Windows MinGW