Support reading from stdin and improve executables