[editor]Fixed some compile errors + warnings.