build/Makefiles: Don't build unittests when ONLY_TOOLS is set.