mingw linking problem