2016: updated media compilation to raise exceptions on error (this commit contains a bug to test the full run)