protoc linking with pthread