Changed attributes of Resource-/BuildingDefinition to final.