Fix conflicting declarations on Linux.

Removes libgen.h file from repository and improves indentation of
basename.c and dirname.c.