Add most parts of the wide char stdio support. This is not hooked upyet.Obtained-from: NetBSD, mostly derived from FreeBSD