change build implementation according to the change of Reflect.java