fix usage of TCHAR, wchar_t and char
 PC version can be build without unicode flags, it's first step for porting to linux