fix landscape alert position in iOS8
Merge branch 'castles-patch-1'
Define NSFoundationVersionNumber_iOS_7_1 if necessary