fixed wchar_t support on linux