Fixed up some stuff so that levels can be compiled again.