Link perl tests to libpthread

The perl string tests don't link on Fedora without this change.