OpenGL hello program from stackoverflow