Buildfix for THREADED_GL config, which I know you are not using ಠ_ಠ