bugfix ios compile on iOS 5.1 SDK closes #2301

bugfix ios compile on iOS 5.1 SDK closes #2301