Support for running as daemon on Linux

Change-Id: Ifcb86e80b3fa48a40efc9a553431b0a400734ad2
Signed-off-by: Greg Burns <gburns@qce.qualcomm.com>