Link against the Python library on Windows only

While extension modules must be linked against the Python library on
Windows, the convention is not to link against it on platforms that
tolerate undefined symbols.