Fix build on osx mountain lion

This fixes #33 for me.