Merge pull request #1851 from rubenk/use-python-config-for-libpython-detection