[build] fix permission for cmake
Fix daemon mode in multiple programs under OSX

  - seaf-controller
  - seaf-daemon
  - fileserver
  - seaf-server
[client] implement new changes of wt-monitor in osx