Fixed numerous compiler warnings.

- A few cases of ambiguous varagrg constructs,
- Fixed use of deprecated junit.framework components,
- etc.

Change-Id: I07cc1f140abde7a6f81c4b4b31b704e95cad5e5a
Signed-off-by: Marek Potociar <marek.potociar@oracle.com>