more work on honoring cflags and toolchain