Add link-time reference for static linking with SSL
Fix static linking with SSL