Build error on mingw