lirc-tools: fix build with kernel headers v4.8+
Backport upstream path that removes references to macros that are no longer
in the kernel lirc.h headers.
Fixes:
http://autobuild.buildroot.net/results/f01/
f015d52faa214f7786dd3169628ce74b738a8b46/
http://autobuild.buildroot.net/results/55f/
55f1ac19736499ef536561bd65c011d2649f43da/
http://autobuild.buildroot.net/results/c68/
c689786b6b0867cea2e45df1c5556cccdd377b33/
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>