Enable XNI properly and add EOF processing (#18)

In the previous checkins XNI was not properly enabled.  This
commit allows XNI to be enabled with the -xni flag and it supports
processing of EOF entries.  It also fixes a bug in register_buffer
for both TCP and IB.