build-sys: properly check for -lrt

Signed-off-by: Karel Zak <kzak@redhat.com>