Well, In the dictionary shanty means a small crudely built dwelling, so a shantyboat would therefore mean a crudely built boat, and that is a part of it, up to a point.