gl: fix core functions loading on Windows