Revert "Try to work around variability of opengl APIs."

This reverts commit c74e9dcbfa8e11c75209446f5f349071276f58f3.
Use GLEW.