Issues with dynamically linked libcurl

I’m trying to launch a juce app to a console app, but it fails with a wrong curl being present in the system:

crappie /usr/lib/x86_64-linux-gnu/libcurl.so.4: version `CURL_OPENSSL_4' not found (required by crappie)

i’ve tried to link statically curl, but i end up having other issues.

is there an easy way to fix this ? (same problem might apply to freetype2)

i was looking into AppImage, would that be an alternative ?