Fix the build after the recent xwt api change