Cleaner implementation of gl_init_platform