Windows build fixes

This contains a couple of build fixes for windows.

1) Ensure that library postfix is set for RelWithDebInfo and MinSizeRel build types.
2) Fix a few small issues encoutnered with visual studio 2010 (no set::set::iterator and definition of uint8_t)