Update callbacks to work with C++11 lambdas (will still work with straight C). Add example usage. Update makefile.