Add `build.sh` to automate pkg-config installation

This commit also cleans up some of the wrongly linked libxml2 and libxslt.