CMake/FindBoost: Fix policy CMP0054 warning (added in 3.1)

(cherry picked from commit 7e6dadfea68836cc92aaa7e1bb770be620225aa2)