Functionalization of polyolefin in the melt