First attempts to update to opengl 4