Use conditional compilation for openssl/applink.c and add libcrypto

openssl/applink.c is needed only on Windows