Packaging work

This patches include all the bits and pieces needed to make this distrubution autoconf-happy.

This means:

$> ./configure --with-apxs=/usr/sbin/apxs ...
$> make 
$> make test
$> make install
$> make dist

All work, and 

$> make rpm

is also included, but might need some more tweaking.