improve detection of boost libraries