fix linking deps, cpeh-dencoder, etc., firefly backport