use configure to pass cc/cflags/ldflags