trace: use standard POSIX header for basename()