Allow building libmpv

The tricky part is enabling PIC for all libraries if required.

We don't always enable PIC, because I'm unsure about its performance or
binary size impact. So play it safe.