Fixed warnings in MS VS at default warning level (/W3)