Remove some warnings in Visual C++