Make a better way to generate dependencies and guard internal use
of the old openssl malloc horror