CMake changes for new real ffmpeg in debian experimental

And various general improvements/fixes for the modules.