apply CFLAGS to used for static compilation