added cookie support to vlc
fixed compile problems