Use CACHE_DIR for both libffi and libsodium