linux pkcs7 build fixes