Revert "remove -lmedia"

This reverts commit 86c30eddd5807ba0d1e99c882738867d6291479d.