Specify correct MCU in Makefile.
Use non-depreciated includes.
Use different ISR syntax.
Use non-depreciated constants.