_HS_OSC
Needs to be used in the configs.
Then
DEFINE OSC 20
needs to be near the top of your code.

Have you read this thread?
http://www.picbasic.co.uk/forum/showthread.php?t=543