Mac: Fixed bug where windows would not be centered when shown.