simplify vdprintf implementation greatly based on recent vfprintf changes