C++ compatibility

Only C++ errors are fixed, no functionality changed.

Code now compatible with Visual Studio 2008. I think it's a good chance to increase number of active developers.
Does this mean that when compiled on Windows it will report version as 1.0? It would be best if we could get the version from git but I don't know if that is even possible through Visual Studio. If it is not possible it would probably be better to put "unknown" or similar here.