remove warnings, fix windows build