Remove libcurl and libssl from stage-2 Dockerfile