Add support for define syntax with procedures.
Fix the repl on Ctrl-D