fix symbol "_pid_daemon" not found

apply part of
http://libwebsockets.org/trac/changeset/68e8d730b8cf2d3b35a25f69afc45d49a818e1e2/libwebsockets