Fixed build error and function for tile costcalc after rust update.g