compile fixes for xpat reflect