fix up build with https support hopefully