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

Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Merge pull request #278 from TimothyGu/dca

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