I've had two errors that I had to fix.
1. For the error:
Joystick.c:213: error: 'clock_div_1' undeclared (first use in this function)
I replaced Joystick.c line 212
clock_prescale_set(clock_div_1);
with
CLKPR = (1 << CLKPCE); CLKPR = (0 << CLKPS3) | (0 << CLKPS2) | (0 << CLKPS1) | (0 << CLKPS0)...