changed linking to libpthread as default.