update compile to support apt