build: do not link everything with -lrt (and therefore -pthread)