Make window titles work on OS X.