Fixes resizeWindow() on OS X (Bug #3200)

This pull request fixes http://code.opencv.org/issues/3200 by only allowing the window to be resized if the window flag is not CV_WINDOW_AUTOSIZE.