Updates for mingw detection hopefully fixes issues with 64bit sys