If you install latest cygwin, postgres is included: no need to compile it anymore. However, the problem is that all libraries are compiled as static (.a), not shared. I've tried a few times to compile pgdriver against them to no avail...