fix build on linux
fix build on farmanager server (wine)