Fix static linking with SSL