compile fixes for xplat reflect