Just to clarify, DEFINE OSC setting does not have to match external oscillator. By adjusting CONFIG1 you can use a 8MHz crystal and have the PIC run at 48MHz for USB.

Robert