Added missing include statements and converted char*'s to wchar_t's