use wchar_t for argument to wcwidth on linux. probably fixes #5854