AMG: Fixed warnings obtained on Visual Studio 2013 (all integer conversion warnings).