Add ios8? to device and environment helpers

Found a couple of bugs that require knowing if the target device is running iOS 8.