More workarounds for AMD bug which requires explicit queue finishing
Removed unused template specification
Fixed a bug in Win32 Debug mode build

Debug build in VC requires operator<() on iterators.