(This commit also modifies deps/libcaption) Closes obsproject/obs-studio#1354
Manually merging/squashing from: https://github.com/szatmary/libcaption