libroot: Replace ftw/nftw implemenations with their musl counterparts. Rewrite ftw.h to be a Haiku header instead of a BSD one while at it.