Removing deprecated warning when targeting iOS 8 or OSX 10.10

NSPropertyListSerialization.propertyListFromData was deprecated in iOS8 and OSX 10.10 so I added some compiler macros around using the proper API call when targeting iOS8 and 10.10