fixed GH #471: vs2010 release builds have optimization disabled
fixed GH #616: Visual Studio warning C4244