configure: fix dependencies of XvMC and old vdpau mpeg2 decoders
vdpau: fix obsolete mpeg1 vdpau decoder when mpeg2 is disabled
vdpau: wrap codec specific functions in appropiate #ifs

Fixes linking when only a subset of the deprecated vdpau decoders is
enabled.