Fixed summary bug. Other compilation fixes.