fixed building with mingw
removed outdated stuff