Compile dirent as C