Now compiling on OSX.  Fixed bug in Directory.