Changed reference to main NSWindow to "strong"

To avoid crash on 10.7