Fix bugs: curl and openssl weren't linking right