compile: Handle https URLs properly