fixed a bug at public key packet version, fixed freeing pgp_message structure