Fixed a potential bug with init min/max of roi counters
Add lut type to Roi counters
Add mask on Roicounter with helper for arcs

Compilation fixes for windows