But i get the following error on my Macbook pro and my windows 8 pc:
Can someone please help me or point me in the right direction?
If you want to compile ancient Arduino code on Windows that was developed for an older version of the Arduino IDE, it will always help to install the older version of the Arduino IDE and compile using that.
On Windows, all the tools and compiler versions are bound to the path where Arduino is installed, so if you installed an old IDE version, you also have an old GCC compiler, an old AVR LIBC library, old linker version and so on. So you just have to find out for which old IDE version the code is, then install this old version on Windows and compile.
This may fail with Linux/MAC versions, as in those systems a new GCC compiler or a new AVR LIBC may be active, even when using an old IDE.
The other solution would be: Learn programming and make the actual code of your sketch and all libraries compile with the actual Arduino IDE version you are using actually.