use function pointers; prepares for c++ interface
Merge branch 'master' of https://github.com/kburjack/casm