added a bunch of
lines to get it to compile on a Fedora 13 system