contrib: initial import from vlc
Import as much depends as we can from vlc