Backport the changes from commit fa114e7d (FindBoost: Add Boost 1.65 dependencies, 2017-08-22) and commit dbba53a5 (FindBoost: Add version 1.65.1, 2017-09-06) to CMake 3.9. Fixes: #17289