Fix #186: avoid iOS7 deprecation warnings

Fixes issue #186 by using conditional code against the deployment iOS target.