Re-add console to win32. Maybe this fixes curses stuff?
Try cleaning up build scripts a bit.