_OSC_RCIO6_1H
Is not what you want
Try this
__CONFIG _CONFIG1H, _OSC_HS_1H & _FCMEN_OFF_1H & _IESO_OFF_1H

Then in your code
DEFINE OSC ??
?? being the speed of your external