only use uniqueIdentifier when supported

prevents crash on ios7
Merge pull request #152 from bbodenmiller/tf

only use uniqueIdentifier when supported