Linear expansions, strictly ergodic homogeneous cocycles and fractals