Got working on mingw again