cmake: properly pass host cflags/ldflags to the build