As I said, commenting out any of the WHILE 1 statements makes it compile just fine for the 18LF45K22 at my end - with or without the ReEnterPBP-18LP.bas file included.
What version of MPASM are you using? (I'm using 5.45)

/Henrik.