use -lrt to compile

Signed-off-by: James Paton <jpaton2@gmail.com>