pull in libgen.h, needed for basename()