Refactor ref_gl include guards