Fixed undefined C constructs (val assignment in expressions using it,