Include ssl.h as pkcs7.h is not sufficient.
Made the ugly part even uglier.