viewport lock when a gui window active
c8* instead of wchar_t
missing include
few warning fix