Fix dependencies for parallel build