Fix MSVC2010 warnings.

Change-Id: Ic586e7d306729f26859411b17c79d36320f487e7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>