Add back functions for converting M to kdirents.

This is probably wrong. Probably should convert D to kdirents.
But at least we have them.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>