CFH12K: the 12,288 by 8,192 pixel CCD mosaic camera for the CFHT prime focus