Added support for EXT_framebuffer_multisample. Minor cleanups on the way.