Replace macros for Boost libraries by newer versions from http://www.gnu.org/software/autoconf-archive/index.html.
Fixes configuration on OSX