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().
Merge pull request #1 from petere/fix-9.3

Fix build with PostgreSQL 9.3devel