configure: add filtering of host cflags/ldflags