Fixed Linux compilation issues for iterator support