builds cleanly using xbuild