make xs compatible with darwin clang