Fix bug in SAN renderer used by smartcard
Fix undef warnings