Fix build warnings on ava4