-More robust hidden file detection for OSX
-Fix build error