Change the way the MAX_FILETYPES define works. It now allocates enough filetype icons...