Fixed compilation in GALC tests and fixed most of GAL tests failures.