What version of PBC are you using? It compiles fine with v1.45.

Can you compile any of the examples in the SAMPLES folder that
poke values to TRIS registers?