add build script for xr
add patch needed to build xr with newer freetype versions