I would skip the wacky work around, and do the easy way. A lot safer that way. That would be to remove the configs from your code, and put them back into where MeLabs had them, in the PBP .inc file for that chip. In your case the 18F4520.INC file. You should still be able to define the oscillator in your code. Don't ask me why.