[noace] use correct dirent definitions on OSX, fixes #141