fix of https://github.com/mattjgalloway/MJGFoundation/issues/6 for supporting iOS SDK 7 - 8 and OSX 10.9