Many Visual Studio fixes

- Make project files compile in VS2010, 2012, 2013
- Make Release configuration works
- Add x64 platform
Sorry to nit pick, but can you update this one to use `static_cast` as well.