fixes for ogl1 on linux