Fix cache implementation for g++4.8
Fix cache implementation for g++4.8

g++4.8 does not implement std::list according to the C++11 standard.

hanw/behavioral-model,hanw/behavioral-model,p4lang/behavioral-model,p4lang/behavioral-model,hanw/behavioral-model,p4lang/behavioral-model,p4lang/behavioral-model,p4lang/behavioral-model,hanw/behavioral-model,hanw/behavioral-model