Fix library path for libpq on Windows.

Fixes #5066