Use correct interface for engine in NPC code
Fix Windows compile