build: Fix a gcc 4.2 warning on 64bit systems

src/descrambler/capmt.c:485: warning: comparison is always false due to limited range of data type
src/descrambler/capmt.c:487: warning: comparison is always false due to limited range of data type
src/descrambler/capmt.c:538: warning: comparison is always false due to limited range of data type
src/descrambler/capmt.c:549: warning: comparison is always false due to limited range of data type
build: ioctl() is defined in platform specific include files and features.h is Linux specific
mpegts: Implement using nanosleep() for systems where clock_nanosleep() is not available