fixed compilation for -dNOPROMPT