added fullscreen in cocoa
Fixed bug on mac os x