Add make rule to build OS-specific files for ref_gl