Simplify build system

- Remove automake build system -- I don't have the knowledge to maintain
  it.
- Remove Darwin-specific stuff from CMake build system -- this was
  pretty superfluous, and never tested.
- Combine the various CMake helper functions into a single file
- Remove CTest - it's not a particularly compelling tool.
Rename get_main_queue_eventfd to get_main_queue_handle