Library wizard: Don't use base class unless it is a plugin.

Task-number: QTCREATORBUG-10444
Change-Id: Iae6559e27573dcdfdde70292f637eb820bf99c93
Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>