Given the problem you have, you haven't probably compiled anything on debian that use libc includes that dives into kernel include. First you need to have a working development environment including relevant include file...
So you need first to prepare your system for developemnt. If you never installed tvheadend you have at least the following library dependencies (you need ffmpeg/libav includes if you plan do to transcoding):
Depends: libavahi-client3 (>= 0.6.16), libavahi-common3 (>= 0.6.16), libc6 (>= 2.14), libdbus-1-3 (>= 1.0.2), libhdhomerun1, libssl1.0.0 (>= 1.0.0), liburiparser1 (>= 0.6.0), zlib1g (>= 1:1.1.4)
But for compiling you need th -dev version of each libraries : eg libc6 -> libc6-deb, libdbus-1-3 -> libdbus-1-dev and so on.
Then instead of using make like you did you should use in root directory
./Autobuild.sh -t debian