Per function callbacks

* reenable per function callbacks
* add directCall to omit callbacks when calling OpenGL functions
* fix OpenGL version query
http://stackoverflow.com/questions/18365532/should-i-pass-an-stdfunction-by-const-reference