Build with VS2013 express for win64

I have made some change for build synergy with VS2012 and VS2013 express edition. And fix some bugs detected by compiler.