Correct getfields prototype in tools.h