Fix build of dependencies