Cleaned up the last few *hopefully* remaining compile warnings. Split consolemsg out so that it can be used internally to the hardcode and externally in softcode.