fixes compatibility with iOS 5 by moving window creation code from willF...

...inishLaunching to didFinishLaunching