Fix ECDH on CentOS 5.x/6.4

This cannot be merged unless jenkins passes (or the only jenkins failures are clearly ephemeral).