Improved configure script for boost and moved all remaining boost checks into compiler.hpp only