Fix MediaProvider compilation