After having issues with it even with converting the project to /MDd, I decided to drop into the source.
<your_path>\postgresql-9.2.4\src\port\win32error.c
-> comment out, or #if 0
the function _dosmaperr
.
The libraries are generated and the application runs fine.
Doing a grep -R _dosmaperr ./
only revealed this one method; but include/port/win32.h
and include/pg_config_os.h
both had it as an extern.
Is a bit late for my mind to make proper head/tail of it, so good enough for now!