Fixes: OSX crash

Hopefully this helps someone else.

Fixes:

        cavestory[47467:707] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error (1000) creating CGSWindow'
        *** First throw call stack:
        (
        	0   CoreFoundation                      0x00007fff8d604b06 __exceptionPreprocess + 198
        	1   libobjc.A.dylib                     0x00007fff92fc13f0 objc_exception_throw + 43
        	2   CoreFoundation                      0x00007fff8d6048dc +[NSException raise:format:] + 204
        	3   AppKit                              0x00007fff97bd2de3 _NXCreateWindowWithStyleMask + 276
        	4   AppKit                              0x00007fff97c6786f _NSCreateWindow + 64
        	5   AppKit                              0x00007fff97ae340d -[NSWindow _commonAwake] + 2159
        	6   AppKit                              0x00007fff97aa1db2 -[NSWindow _commonInitFrame:styleMask:backing:defer:] + 1763
        	7   AppKit                              0x00007fff97aa0eff -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1568
        	8   AppKit                              0x00007fff97aa08cf -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
        	9   libSDL-1.2.0.dylib                  0x0000000104768ae5 -[SDL_QuartzWindow initWithContentRect:styleMask:backing:defer:] + 279
        	10  libSDL-1.2.0.dylib                  0x0000000104766aba QZ_SetVideoMode + 2929
        	11  libSDL-1.2.0.dylib                  0x000000010475d7b1 SDL_SetVideoMode + 907
        	12  cavestory                           0x0000000104734c39 _ZN4GameC2Ev + 73
        	13  cavestory                           0x0000000104734be5 _ZN4GameC1Ev + 21
        	14  cavestory                           0x0000000104734d92 main + 34
        	15  libdyld.dylib                       0x00007fff918de7e1 start + 0
        )
        libc++abi.dylib: terminate called throwing an exception
        Abort trap: 6

![](http://cdn.instanttrap.com/trap.jpg)

Cheers!