libdca: add cherry-picked patches that fix crashes, etc.