npwrapper: link against pthread on UNIX