Update utils conditional compilation to support cygwin