Linking commands necessary for OS X.
ifdef to remove boost join parse error.
Merge pull request #31 from hawesie/master

Seems to work OK.