Corrected openGL framebuffer releasing.
Minor clean-ups.
Clean-ups to the plugin scanning code.