Updated encoding for PKI_MEM to the new LibPKI 0.8.7 interface. Added -Wno-deprecated compiler option for darwin build