Corrected implementation of %n.
Corrected implementation of %s for _vswprintf.
Fixed cast for %p.