SERVER-8791 SERVER-9164 Fix Windows compile warning