With your project open in MPLAB:
Project > Build Options > Project
There, select the MPLAB C18 tab and, under Macro Definitions, add _FRC_BOARD.
You can also enable code optimizations by editing the "-Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-" strings.
These two posts discuss it in more detail.