Daemon: fix build with MinGW <= 4.7.