Add support for http and multiple defines