Compiler warning fixes in NPC, and beam_shared