Fix iteration bug.
Check for <thread> support in fsw.
Add ax_cxx_have_thread.m4 macro in fsw.
Add fsw_monitor_join function to libfsw.