opengl: move GL_ASSERT_NOERROR macro to header