Don't expose GL types to nonGL systems

cherry-picked from
https://github.com/plexinc/plex-home-theater-public/commit/e09d2fa89