remove some more useless code. The mingw target can now be built