Multiple fixes.
Removed the useless inclusion of GLEW.
Migrated from glXQueryDrawable to glGetIntegerv to solve XBadDrawable coming up when getting the width and height of the drawable.
Fixed the compilation instructions.