Fix Unix/Linux build

These files need to be modified to make Linux builds of the daemon work.