Reapply patch from http://sourceforge.net/p/glew/patches/40/

This reverts commit dd70f09fcec801863d919fceaac906a7957633a5.