Fixed broken dependencies and build configurations.