Error 1 seems to have something to do with not including <avr/pgmspace.h>
. Or maybe the versions are incompatible. You may have to make your own typedef to get it to work.
Error 2 looks like an error caused by the version of the compiler being newer. You could modify the file to make the variable const.
If you don't want to tweak these files, then you need to get compatible versions of everything.