improved solution for xgetbv() on windows and linux with all compilers