Fix build break when boost/version.hpp not included elsewhere.