squid 3.1.20 is supposed to be compiled with eCap 0.0.3, not ecap 0.2.0. squid 3.2 can be compiled with ecap 0.2.0.