Add missing CFLAGS when linking object files