Fix cchat:start2() bug, remove a few compiler warnings