fix http/https build