Fixing compilation with postgresql under MXE/MinGW.