Include 'libgen.h' in 'tape'

`basename` is not declared on Darwin unless `libgen.h` is included.