Some small things to make it compile on Ubuntu 12.04

Changed CRYPT_ATTRIBUTE_INT_ERRORMESSAGE for CRYPT_ATTRIBUTE_ERRORMESSAGE and added -lcrypto to cc command to make Ubuntu 12.04 and anything with reasonable recent openssl work