Fix MS VC compiler warnings