move using namespace below includes

fixes ambiguity between <wchar.h> and <cwchar>