Update Makefile.am.
Port SimpleEventLoop to pthreads for non-Linux platforms.
Revert -Wl,--no-undefined change since it doesn't work on Mac (among other platforms).
Update test config.