Fix some minor bits for 1047 Zones
Mock judge with cachegrind support and memory limit.