Add dependencies on the encoder libraries to the unit tests

This makes sure a "make codec_unittest" succeeds without any
prior make invocation. The usage of the encoder libraries in
the unit test was added in 6f58a0c1.
Add a dependency on the unittest in the "make test" rule

This makes sure "make test" succeeds without building anything
beforehand.