ncloader: automatically enable debug privilege if present