add some dirent defines, fixes #1277