Fix all compile errors