daemonize moved to platform specific section