Fix for #675

This PR :
 - fix the MSVC10 compilation error on topology
 - fix some MSVC warnings in tests