Fixes for Windows compilation errors.
Fixes for Windows compilation errors.

Two issues when compiling on Windows:

(1) Need to use `result_of` from Stout since `std::result_of` doesn't
do what we want on Windows.

(2) The Windows compiler can't deduce the template parameter
`Iterable` in circumstances where there are more than one template
parameter for `Iterable`. This change adds the variadic template
parameters to capture these cases.

abudnik/mesos,reneploetz/mesos,chhsia0/mesos,reneploetz/mesos,chhsia0/mesos,reneploetz/mesos,Gilbert88/mesos,jpeach/mesos,abudnik/mesos,andschwa/mesos,Gilbert88/mesos,kaysoky/mesos,asamerh4/mesos,jpeach/mesos,zmalik/mesos,gsantovena/mesos,verizonlabs/mesos,Gilbert88/mesos,abudnik/mesos,gsantovena/mesos,zmalik/mesos,andschwa/mesos,andschwa/mesos,kaysoky/mesos,verizonlabs/mesos,abudnik/mesos,dforsyth/mesos,gsantovena/mesos,verizonlabs/mesos,Gilbert88/mesos,gsantovena/mesos,jpeach/mesos,chhsia0/mesos,abudnik/mesos,asamerh4/mesos,asamerh4/mesos,verizonlabs/mesos,chhsia0/mesos,jpeach/mesos,reneploetz/mesos,dforsyth/mesos,abudnik/mesos,reneploetz/mesos,zmalik/mesos,jpeach/mesos,andschwa/mesos,verizonlabs/mesos,verizonlabs/mesos,gsantovena/mesos,asamerh4/mesos,dforsyth/mesos,Gilbert88/mesos,dforsyth/mesos,Gilbert88/mesos,chhsia0/mesos,reneploetz/mesos,kaysoky/mesos,zmalik/mesos,andschwa/mesos,reneploetz/mesos,chhsia0/mesos,gsantovena/mesos,kaysoky/mesos,dforsyth/mesos,dforsyth/mesos,jpeach/mesos,asamerh4/mesos,zmalik/mesos,asamerh4/mesos,Gilbert88/mesos,asamerh4/mesos,kaysoky/mesos,kaysoky/mesos,kaysoky/mesos,dforsyth/mesos,zmalik/mesos,zmalik/mesos,jpeach/mesos,chhsia0/mesos,gsantovena/mesos,andschwa/mesos,andschwa/mesos,verizonlabs/mesos,abudnik/mesos