Add makefile targets for unit test coverage

To improve unit test coverage before rewrite it is good to know what
code is run by current test set.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Use system getopt on unix systems

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>