Swap TGT_PRLIBS for TGT_LDLIBS, and link rbmonkey explicitly against pthread and talloc to fix static builds