host: Added check for libc version

It's necessary to build with -lrt for libc < 2.17 when using
clock_gettime().