More opengl module build fixes.
Use frame->convert_image() to not affect frame stack.
Fix auto-profile with opengl module.