Fixed VS2010 compile errors.

Also, disabled DEPTH_TEST for framebuffer blits.
Fixed VS2010 compile errors.