fix build error on VS2012 toolchains.

Fix build error on VS2102 toolchains.
A local variables define beginning of a scope block.