Compilation fixes related to changing record structure and adding in ETS tables.