Move WIN32 console handling into Init and Shutdown. Also, uninitializedvariablesaywhat?