Lots of fixes for Unix compatability (basically making sure that the case of paths is accurate since Unix is case sensitive and Windows isn't).