Improve patchIfNeeded to Work on iOS 7

Also fixes the tintColor crash described in #50