installer: copy smalloc.h on installation

fix #7485