Attempt at fixing compilation error.

Moved includes around added include for gl.h (for GLuint) and moved the
creation/destruction methods back into buffer class.