Improve system version detection over #171

When building against iOS 6 SDK `NSFoundationVersionNumber_iOS_6_0` and `NSFoundationVersionNumber_iOS_6_1` may not be defined.

Replaces #186.
Merge pull request #187 from rivera-ernesto/ios_version_detection

Improve iOS system version detection over #171