Restored #include <libavutil/mathematics.h> because it seems to be required on some distros (e.g. Sabayon).