Import from http://tinymux.googlecode.com/svn/