sim: nltvals: pull target errno out into a dedicated source file