fix compile errors in octagon