added cflags parameter to create_config