CONSOLE fix windows mingw build