Include libgen for basename prototype.