[osx] add CharsetDetection.cpp/h to xcode project