Fix compilation errors when deprecated features are disabled.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>