Temporarily disable the dirent calls which are broken on Linux. Wrap IsDebuggerPresent() in #ifdef _WIN32.