autotools: Check for `cython3` as well

Ubuntu calls it that instead of `cython`.

Fixes #133.
autotools: Make sure the compiler knows std::mutex

Happens to fix #134.
autotools: Make sure ffmpeg libs can be linked