build script and patches for v1.2.2 impala