compile errors with master

See attached. Ive cut and pasted the last bit of the cmake files as well. The error is associated with:

  "Can't determine if openssl_d2i_x509() takes const char parameter")

Is there a way to disable this? I have openssl-devel installed (RHEL6).

cmake error