Just ensure you have the latest versions of PICBasic and MPLAB.

16F877's progression is really the 18F452, 18F4520 etc. whilst I don't use those parts, I can confirm their smaller brothers the 18F242, 18F2420, 18F252 etc are stable, and I use those where I run out of steam with the 16F876.