Added CPU specific compiler flags.
Cleaned up warnings.
Added stub defines for AVR functions we don't have.