gitian: upgrade openssl to 1.0.1g for both win and linux

OpenSSL 1.0.1g fixes CVE-2014-0160 and CVE-2014-0076.

Also bump dependency versions.