In your first program you forgot the "@ device"-statement. This statement is neccessary for every program! How should the PIC knows to initialize his oszillator ?
And use the "DEFINE OSC"-statement !