Python build fixes

These two commit fix bulid problems on Windows and Linux with the Python module, by correctly settings the include_dirs and library_dirs based on modern usage.