Switch OFF LVP and BOR (brown-out-reset). If does not help, send your full code, i'll try to simulate it.
Btw, do you use 8 or 4-bit interface to LCD?

PS. Are you sure your code worked and that you ported it correctly? Type of LCD is also interesting.
PS/1. X-tal must be placed right next to uP, no wires!