Fix daemon mode in multiple programs under OSX

  - seaf-controller
  - seaf-daemon
  - fileserver
  - seaf-server
Merge pull request #726 from Chilledheart/daemonize_under_osx

Fix daemon mode in multiple programs under OSX