Fixed warnings generated by visual studio