Type::IntTy hasn't existed for a while. Just sub in Type::Int32Ty.