Fixed iterator type.

Couldn't get it to compile on Windows otherwise.