fix init gl function for windows build