Fixes for openssl on windows