apple: Fix multiple build failures in applegl_glx.c