Fix some errors on when build without installing the 3pp on boost.