Makefile modifications for test target

On fresh clone of repo, "make test" used to give,
"make: *** No rule to make target `codec_unittest', needed by `test'.  Stop."
because gtest was not available. Now, tries to get gtest if not already available
before making test target.