Confirmed to work fix for Mac OS-X (issue #334)

Much shorter and cleaner solution.
Also solves the issue of "successful" compilation without finding boost which fails later at run time.