Remove useless gui-related and win-related stuff