Merge pull request #13 from adrianbroher/master

Don't step out of the extension array bounds to prevent triggering a GL_INVALID_VALUE.
ignore some new moc output
code formatting
fix for glLinkProgram getting stuck