some adjustments in C projects and generators to be ANSI compatible

Change-Id: I800802f1c88cc96785af7e06bffaead138556724
23 files changed