polarssl: fix compilation

Rename x509_cert to x509_crt and add "compat-1.2.h"
include.
This would still need some more thorough conversion
in order to drop "compat-1.2.h" include.

Tested with openssl and polarssl build-path.

Also see https://bugs.gentoo.org/show_bug.cgi?id=503558