Prevent width_to_numcolumns from returning negative numbers on OS X.