fix CFLAGS typo, add missing header