Hi Claes!
Thanks for the tip, I though of testing to do symlinking but the rpc folder already had some other files in it so I could not symlink the whole folder. Anyway it worked symlinking each file needed for the build, see below if anyone else need to do the same workaround. Got stuck on another interesting thing though, I'll put in a new post for that one.
Thanks again, cheers!
Ps. I had been looking in "src/tools/pwre/src/pwre_configure.sh" but must admit I could not figure out how and where to add additional include paths, but I'll give it another try.
cd /usr/include
sudo ln -s /usr/include/tirpc/netconfig.h
cd /usr/include/rpc
sudo ln -s /usr/include/tirpc/rpc/types.h
sudo ln -s /usr/include/tirpc/rpc/xdr.h
sudo ln -s /usr/include/tirpc/rpc/auth.h
sudo ln -s /usr/include/tirpc/rpc/clnt_stat.h
sudo ln -s /usr/include/tirpc/rpc/clnt.h
sudo ln -s /usr/include/tirpc/rpc/clnt_soc.h
sudo ln -s /usr/include/tirpc/rpc/rpc_msg.h
sudo ln -s /usr/include/tirpc/rpc/auth_unix.h
sudo ln -s /usr/include/tirpc/rpc/auth_des.h
sudo ln -s /usr/include/tirpc/rpc/svc_auth.h
sudo ln -s /usr/include/tirpc/rpc/svc.h
sudo ln -s /usr/include/tirpc/rpc/svc_soc.h
sudo ln -s /usr/include/tirpc/rpc/pmap_clnt.h
sudo ln -s /usr/include/tirpc/rpc/pmap_prot.h
sudo ln -s /usr/include/tirpc/rpc/rpcb_clnt.h
sudo ln -s /usr/include/tirpc/rpc/rpcb_prot.h
sudo ln -s /usr/include/tirpc/rpc/svc_mt.h
sudo ln -s /usr/include/tirpc/rpc/rpc.h