Add some daemon-ization helpers