PUIGCERDÀ, Sant Tomàs de Ventajola, S-XI