fix OptiQL compile error with modified restage code generator