Unify dynamic_fmt.c among branches