Better random seed.
Fixed BIO_METHOD initialization for thread safety.