Fix X protocol generation in build.xml