Compact stellar systems and cluster environments