Fix some compiler warnings!

* The uinet bits in libev code use pthreads, but pthreads.h isn't included.
* assert() doesn't take a string - it takes a true/false value.
  So, create a macro for it and use it everywhere.