move -lrt to the end of line to satisfy picky gcc