tidy up a weird xbuild issue