Allow bitc to build on OpenBSD
Remove -lsnappy
Remove extra pthread_mutex_lock/unlock

This fixes an Abort Trap on pool creation seen on OpenBSD.
Merge remote-tracking branch 'upstream/master'

Conflicts:
	Makefile
	src/block-store.c
Merge remote-tracking branch 'upstream/master'
Merge remote-tracking branch 'upstream/master'
Ignore -lsnappy on OpenBSD and check for MAX define
Add sys/socket.h to netasync.h
Remove unused/unneeded include
fix poolworker post-merge. add unit test.