build sys: use system version of pugixml if present

Fixes #1090.