Fixed building offscreen video driver without EGL support Also did miscellaneous style cleanup for consistency with other code