add the menu, tolower and strbuffer units from the ncmpcpp code base