Make pg_compile OS-proof

The things specific to MinGW are added in this script.