[build] fix daemon build under osx with cmake