Fixed VC heap space issue.
Fixed MSVC compiler warning.