gl: fix build with more recent versions of MinGW