Fix detection of boost for boost >= 1.50.