Fix ava4 build incompatibilites and missing write config parameters