Fix types and typos
Update tools.mk

tools.mk.git at commit e631fca1fd366461022e108315dac6032d1c36fb
Fix xref/dialyzer warnings in OSS version