cmake: removed unneeded BSD bits
mobjects: explicitly include sys/dirent.h
mobjects: sort includes
XXX