support cygwin, remove snappy dependency