Updates C flags and adds VERSION defines.