libpq currently doesn't compile with vc6. The reason is a conflict of prototypes for rename and unlink, which happens when fe-lobj.c includes io.h.
The attached patch will redefine unlink and rename only if FRONTEND is not defined.
Regards,Andreas