fix for gl build