Compiler fixes for DirectoryTest.