Added GL version check, allowing the HPMC to choose functionality based
on version.
hp reduction uses texelfetch if GL version is 3.0 or higher.
Added use of EXT_framebuffer_object only when target is less than GL 3.0
Added support for KHR debug output if DEBUG is set.