lib: make stderr works in NUSE mode

now we have sim.c, lib.c, and nuse.c, we don't have to do the trick.