Add -DBOOST_SPIRIT_THREADSAFE for daemon.

Define BOOST_SPIRIT_THREADSAFE also for building the daemon (it is already present for Qt).