hopefully fixed OSX issue with chipKIT

Rearranged and redefined how the #define statements in the header
worked.