patches: port some patches from vlc-next