[build] fix daemon build under osx with cmake
[build] cmake patch for new-sync
[daemon] implement wt-monitor in osx, phase 1