Fix dependency generation for MacOSX