Use static openssl libs to support thrift 0.9.x

Addresses #547.