main: extract function to log SDL errors
main: create OpenGL context and swap buffers
include GLEW and clear screen using GL