Fix daemon mode in multiple programs under OSX

  - seaf-controller
  - seaf-daemon
  - fileserver
  - seaf-server