it'd be nice to have the Makefile build a shared lib as well as the static. i took an initial stab at it here: https://gist.github.com/799558