fix detecting xbuild