configure: only disable what needs openssl/ec.h