Add ability to run as daemon on non-Windows OS's.