create C header only once per stream