On compact semirings