Fix iOS6 sincos crash

XCode likes to optimize use to use a sincos implementation that is not present in iOS 6, so we added a workaround to avoid the optimization.