FIXUP OpenGL layers fix
Compilation fixes, and nuke last RefPtr bits