fix windows compiler warnings