mksh is a successor to the Public Domain Korn Shell (pdksh) Pass UTF8=no to the script so that mksh does never assume that the terminal is in UTF-8 mode. Pass STATIC=yes to the script to create a static build. Pass DIET=yes to the script in order to use dietlibc (this requires dietlibc, also available on SBo)