libcofi: use libarmmem as replacement