Fix progress output in Mac OS X.