Fix clang/travis, prefer static libs when BOOST_ROOT is set.