LA POBLA DE CLARAMUNT, Sant Andreu del Castell, S-XII