builds with mingw64. not optimized yet