if on windows, use native method to obtain console width