generator: fixed C generator on mac