fix compile flags for .c files