* [core]: compile dirent functions if needed