conditionally declare X509_V_FLAG_PARTIAL_CHAIN

Solaris has apparently backported this from 1.0.2 so our version detection causes a compile error. This should fix the bug, but hopefully we'll be able to add a Solaris builder to jenkins soon-ish to prevent future problems.