OS X window stuff.