Fix Mingw-w64 build

Started working on console input handling... but on the wrong branch.