Fixed wstring issue and some link deps