Fix #20 crash in iOS6 by checking version at runtime.