Cannot build Leia under Debian Stretch

Hi!
I am trying to build Leia under Debian Stretch. VAAPI is shown as disabled, I use VDPAU.
However I get this error:

Code:
Building CXX object build/cores/VideoPlayer/codecs/video/CMakeFiles/dvdvideocodecs.dir/DVDVideoCodecFFmpeg.cpp.o
/usr/local/src/xbmc/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp: In member function ‘IHardwareDecoder* CDVDVideoCodecFFmpeg::CreateVideoDecoderHW(AVPixelFormat, CProcessInfo&)’:
/usr/local/src/xbmc/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp:1192:16: error: ‘VAAPI’ does not name a type
     return new VAAPI::CDecoder(m_processInfo);
                ^
/usr/local/src/xbmc/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp:1192:21: error: expected ‘;’ before ‘::’ token
     return new VAAPI::CDecoder(m_processInfo);
                     ^
/usr/local/src/xbmc/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp:1192:21: error: ‘::CDecoder’ has not been declared
/usr/local/src/xbmc/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp:1192:21: note: suggested alternative:
In file included from /usr/local/src/xbmc/xbmc/cores/VideoPlayer/DVDCodecs/Video/DVDVideoCodecFFmpeg.cpp:1185:0:
/usr/local/src/xbmc/xbmc/cores/VideoPlayer/DVDCodecs/Video/VDPAU.h:546:7: note:   ‘VDPAU::CDecoder’
class CDecoder
       ^
build/cores/VideoPlayer/codecs/video/CMakeFiles/dvdvideocodecs.dir/build.make:86: recipe for target 'build/cores/VideoPlayer/codecs/video/CMakeFiles/dvdvideocodecs.dir/DVDVideoCodecFFmpeg.cpp.o' failed
make[2]: *** [build/cores/VideoPlayer/codecs/video/CMakeFiles/dvdvideocodecs.dir/DVDVideoCodecFFmpeg.cpp.o] Error 1
CMakeFiles/Makefile2:8229: recipe for target 'build/cores/VideoPlayer/codecs/video/CMakeFiles/dvdvideocodecs.dir/all' failed
make[1]: *** [build/cores/VideoPlayer/codecs/video/CMakeFiles/dvdvideocodecs.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2