generate C without cast warnings
also remove some extra ugly whitespace in the perl