Merge pull request #1147 from lvh/ffs-fedora

Conditionally add X509_V_FLAG_TRUSTED_FIRST