Fix build on OS X
Merge pull request #2 from eile/bbp

Fix build on OS X