Now use iterators for our collections

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Add some const-correctness around the threading classes

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>
Some Win32 fixes

Signed-off-by: Rick Taylor <rick@tropicalstormsoftware.com>