fix building tools with -N