fixed compiling errors for ir and parser