Add macros to check for Boost libraries and headers.