mingw & fake curses compilation fix