Remove sys/param.h dependency.
Rename dprintf function to d_printf.
Move CHANGELOG to ChangeLog and move Makefile to Makefile.old.
Add autotools build based on automake and autoconf.