only link against pthread on openbsd iw perl is linked against it too

Since OpenBSD 5.0 we cannot load libpthread. This must be done when perl
boots up, so we have to check that in order to decide whether to link
against that lib or not.