Fix build with PostgreSQL 9.3devel

Some needed declarations have been moved to the new header
htup_details.h.

Adjust hack in scanner file for changed definition of ereport().