add rts2_httpd_LDFLAGS = @LIB_PTHREAD@

please test it