added -lrt to make ubuntu happy