upgrade xvect.h