Fixed problems compiling Proxy.

1. Also switched to the safer vsnprintf_s.