Since version 0.5 ecpg is distributed together with Postgres. So you should get your precompiler, libraries and header files compiled and installed by default as a part of your installation.
Read the upstream documentation. For corrections, first check the current manual.