Fix OSX build for non monolithic build

On OSX, all dependencies should be explicitely set up at build time.