Many Visual Studio fixes

- Make project files compile in VS2010, 2012, 2013
- Make Release configuration works
- Add x64 platform
Commit updated with 7d130e26c06f0ee5e6277fd4ca15dbf3fd283a05.