cleanup C compiler code for 64-bit hosts
use macros for literals comparision and copy
correct some variable types
optimize code