Generate global constructor stub