Improve boost python detection