fix build in mingw
fix build
fix build on farmanager server (wine)