Fix boost dependency.
Make it work on Mac OS X 10.9.

Should be backwards compatible but have not tested it on other
OS X versions or platforms.