Changes to make compatible with gcc 4.7.

Specifically required by changes introduced in gcc 4.7. See
"Porting to GCC 4.7" at:
http://gcc.gnu.org/gcc-4.7/porting_to.html .
Add initial tests for Visual Studio 2008.

Further tests to be added.