link openssl and libffi statically