Add '#ifdef USE_LIBPQ' around the code which use PreferLibpq option
introduced in the previous commit.
More improvement on MSDTC enlistment.