fix symbol "_pid_daemon" not found error

apply part of http://libwebsockets.org/trac/changeset/68e8d730b8cf2d3b35a25f69afc45d49a818e1e2/libwebsockets
Merge pull request #2 from ku/master

resolve compile error symbol "_pid_daemon" not found