[NTD] changed sprintf for ostringstrams for compatibility