[cvs-nhc98] patch applied (hat): Build hat-tools before hat-lib, since the latter is currently more