Fixed joda dependencies and compilation errors not detected by IDE