Guarded all Cocoa functions with autorelease pools
Disabled high resolution support for the window. Let's hope it works allright all through