macosx: prepared fullscreen support and clean-up