MinGW: Include .dll extension in .def file LIBRARY commands.
MinGW: Include .dll extension in .def file LIBRARY commands.

Newer toolchains append the extension implicitly if missing, but
buildfarm member narwhal (gcc 3.4.2, ld 2.15.91 20040904) does not.
This affects most core libraries having an exports.txt file, namely
libpq and the ECPG support libraries.  On Windows Server 2003, Windows
API functions that load and unload DLLs internally will mistakenly
unload a libpq whose DLL header reports "LIBPQ" instead of "LIBPQ.dll".
When, subsequently, control would return to libpq, the backend crashes.
Back-patch to 9.4, like commit 846e91e0223cf9f2821c3ad4dfffffbb929cb027.
Before that commit, we used a different linking technique that yielded
"libpq.dll" in the DLL header.

Commit 53566fc0940cf557416b13252df57350a4511ce4 worked around this by
eliminating a call to a function that loads and unloads DLLs internally.
That commit is no longer necessary for correctness, but its improving
consistency with the MSVC build remains valid.

Postgres-XL/Postgres-XL,50wu/gpdb,adam8157/gpdb,greenplum-db/gpdb,zeroae/postgres-xl,Postgres-XL/Postgres-XL,lisakowen/gpdb,techdragon/Postgres-XL,pavanvd/postgres-xl,pavanvd/postgres-xl,jmcatamney/gpdb,xinzweb/gpdb,xinzweb/gpdb,lisakowen/gpdb,lisakowen/gpdb,ashwinstar/gpdb,yazun/postgres-xl,ovr/postgres-xl,zeroae/postgres-xl,yazun/postgres-xl,zeroae/postgres-xl,greenplum-db/gpdb,xinzweb/gpdb,ashwinstar/gpdb,techdragon/Postgres-XL,ovr/postgres-xl,50wu/gpdb,adam8157/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,Postgres-XL/Postgres-XL,lisakowen/gpdb,greenplum-db/gpdb,yazun/postgres-xl,50wu/gpdb,adam8157/gpdb,adam8157/gpdb,50wu/gpdb,adam8157/gpdb,oberstet/postgres-xl,xinzweb/gpdb,50wu/gpdb,50wu/gpdb,pavanvd/postgres-xl,50wu/gpdb,ovr/postgres-xl,adam8157/gpdb,techdragon/Postgres-XL,lisakowen/gpdb,Postgres-XL/Postgres-XL,jmcatamney/gpdb,techdragon/Postgres-XL,oberstet/postgres-xl,xinzweb/gpdb,jmcatamney/gpdb,ashwinstar/gpdb,50wu/gpdb,ashwinstar/gpdb,oberstet/postgres-xl,greenplum-db/gpdb,oberstet/postgres-xl,ashwinstar/gpdb,greenplum-db/gpdb,jmcatamney/gpdb,pavanvd/postgres-xl,lisakowen/gpdb,zeroae/postgres-xl,jmcatamney/gpdb,jmcatamney/gpdb,yazun/postgres-xl,lisakowen/gpdb,ashwinstar/gpdb,Postgres-XL/Postgres-XL,xinzweb/gpdb,yazun/postgres-xl,xinzweb/gpdb,greenplum-db/gpdb,ovr/postgres-xl,greenplum-db/gpdb,ovr/postgres-xl,zeroae/postgres-xl,oberstet/postgres-xl,adam8157/gpdb,lisakowen/gpdb,ashwinstar/gpdb,ashwinstar/gpdb,xinzweb/gpdb,adam8157/gpdb,jmcatamney/gpdb,techdragon/Postgres-XL,greenplum-db/gpdb