I attached patch which removes dependency on postgres.h during ZIC compilation.
It was discussed there: http://archives.postgresql.org/pgsql-hackers/2007-10/msg01261.php
Zdenek