They have three different directories for each of the operating systems with pregenerated config.h / snappy-stubs-public.h headers and then just add the respective build directory with OS conditionals.

The tests failures happen randomly. I haven't the time to track down the issue. There's a lot of multithreading involved, that may be the issue. I haven't looked at the library in months, so it's all going over my head.

The test error appears to be random so we can drop that from this thread since the #40 exists for that.

Secondly, I pulled down v0.6.19 to test that also and it built and passed all tests. Given that I would say we update the package.json to put 0.6.13 or 19 as the minimum the library will work with so that users know what to expect.

It is really cool to see all of the interest in this pull, thanks a lot all.