Fix all compile/run errors