Only apply patch2 when compiling wht native mode