Fix for issue #27 Warning -dismissModalViewControllerAnimated: is deprecated

I have kept the original code around in an ifdef.