I think that warning in the second line is saying that you are are using _CONFIG and that on 18F devices, you should be using CONFIG instead.

Not having used 18F devices, I'm not sure, but that's what it seems to be saying to me.