fixed GlutHostMain.cpp to work with either SUBSYSTEM:CONSOLE or SUBSYSTEM:WINDOWS under Visual Studio; fixed crash on exit in MOAIProfiler