Compile/cygwin gcc

Added cmake warning
Added std::to_string for cygwin-gcc
Cast signed values to compare to unsigned values (maybe adding a check for non negativity too ?)