Cannot compile Nibegw on ide2

I'm trying to compile the NibeGW ino found here

I have an Uno rev3 which should work.
However, when I compile it I get many errors with the source code. In my own code I have removed the defines for pro boards and hardware RS485.

starting with NibeGw.h I cannot understand what Serial_* RS485 is. It doesn't seem to be a valid type. Does anyone understand what this is please? The only imported file is Arduino.h
Thanks
Andy

Post an annotated schematic, not a frizzy picture of your circuit showing all power, ground and power connections. Posting your code using code tags will help us help you. Without more information I can only guess and say you are missing a library.

Although you have provided links to your reference code, it is better to post your code in full.
Also post the compile errors.