Fix ignored CFLAGS
Fix signed/unsigned int comparison
Fix missing field initializer