Support for iOS 5

contains changes from https://github.com/Sumi-Interactive/SIAlertView/pull/6 & fixes `UIWindow` hierarchy issues.