Compiling on IMX6 hardware

I am trying to compile Kodi 17.0 (from github) for my IMX6Q based machine. I bought the machine from a indigogo project (it’s an Ezeecube) and it came preïnstalled with a Yocto build (arm-poky-linux-gnueabi). The compiler is installed and I have already compiled a few programs without problems (screen, tar, etc…).

I have configured Kodi with the following command:

Code:
./configure --prefix=/opt/data/media/internal_disk/kodi17/ --enable-gl=no --enable-gles=yes --enable-x11=no --with-ffmpeg=auto --enable-vaapi=no --enable-vdpau=no --enable-codec=imxvpu

After some trial and error I got it to configure completely. While running the ‘make’ command I run into problems with the IMXVPU. The first error I receive is:

Code:
DVDVideoCodecIMX.cpp:950:52: error: 'VPU_DEC_RESOLUTION_CHANGED' was not declared in this scope

It seems that I don’t have the required headers/libraries for compiling for my machine, on my machine. Are there any IMX6-specific packages that I need to install, and where can I get them from?