update mpv & fix compilation issues & more porting to libmpv