Fixing the build break on osx10.8 xcode4.6.2

Had to remove NSTextFinder.h & move the enum to a relevant place, as well as a bunch of other fixes