support al_fprintf and al_vfprintf