btowc: Work around Cygwin 1.7.2 bug.