Fix daemon build