fix build for tools