ion: fix some build warnings