The -C argument must come first on the command line of 'go build' if the flags specified by the user via build-flags start with -C pass it first. Replaces #3380