add cflags support to configure script