I think you are supposed to use CPU cement, which acts to draw heat away from the CPU.
you could use CPU glue but all you need to keep the fan in place over the cpu is a couple of blobs of hot glue on the four corners of the CPU then press the fan in place
the glue then forms a good solid bond once cooled