fixes to xsp build script.