Translate code to Arduino from WinAVR

Hello,

I'm just wondering if there is somebody up for the challenge to make this Arduino friendly.

Source code, I want to flash this onto a 328p even though this was designed for a ATmega8...

Whenever I try to compile it with Arduino it just shouts at me throwing this error:
'UCSRA' undeclared (first use in this function)

Is anybody willing to help me here?

Project I'm currently trying to replicate...

ArduinoWBO2.ino (11 KB)

(deleted)

I believe you need to change all occurrences of UCSRA to UCSR0A.