Use NSString-specific case change functions on OS X/iOS

this solves the issue of #309 for iOS/OS X without increasing the executable size by including all of the required unicode tables