Mid-latitude coralgal bioconstruction and endolithic microbialites: environmental significance during Quaternary climate variations