Fix SLES boost detection.

Fixes #5027