ported mjpeg stream to newer osx