check base SDK version before using iOS7 code. fixes #17