Convert ext/curl to HNI

Part of #1480

I feel like there should be a nicer way of doing these constants.