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

OpenSSL 1.0.1g fixes CVE-2014-0160.

Also bump dependency versions.
Merge pull request #4023

4a811b0 gitian: upgrade openssl to 1.0.1g for both win and linux (Wladimir J. van der Laan)