Ignore build/ and dist/
Convert READ and WRITE constants to integer values

These intervalues correspond to libuv UV_READABLE and UV_WRITABLE, which makes
it simpler and more logical to use throughout the code.