I am not sure if libpq++ will compile with non g++ compilers,but the Makefile does break non g++.
<<mak.patch>> Andreas