fix chip compilation bugs, attempt to fix redlogic red alloy wire client sync bugs