extension-api: fix multiple compiler warnings

Fixed warnings related to the use of Class as a raw type.
Fixed unused imports

Change-Id: I0a6c4bb2aff40770607a129a83a20ceb2038dd99
Signed-off-by: Tim Speetjens <tim.speetjens@redhat.com>