Support builds against current PostgreSQL HEAD.

deparse_context_for() was moved into utils/ruleutils.h.
Fix compiler warnings.

Some symbols are used only within a special context (assertion enabled builds),
so decorate them with __attribute__((unused))...not nice, but there are already
too much ifdefs around.