Fixed build of dependencies