pgmspace.h is not supported?

Thanks Paul, including your code for now stoped givving errors regarding pgmspace but let's see further down since now I'm stucked on the port conversion, the lib referes to PORTA for example witch is not defined for DUO and I can't find where the new definitions exist or what I can use insted.

Tom, for now I just put the pgmspace.h file from Paul on the current lib dir and all previous #include <avr/pgmspace.h> I change them to #include "pgmspace.h".