Switched to primitive types in the logging system (more friendly with MSVC).
Implemented GL error checking for each GL call.
Fixed overflow risks in windows logging.