Many Visual Studio fixes

- Make project files compile in VS2010, 2012, 2013
- Make Release configuration works
- Add x64 platform
Should this be `static_cast<DWORD>(size)`?