The pinout usually give some great hints... AN like ANALOG.. so you want to disable the analog features of the offending pins...and have a look at this thread
http://www.picbasic.co.uk/forum/showthread.php?t=561