Move <libgen.h> include so we know whether we HAVE_LIBGEN_H -- kevin