compile fix in genericfactory

Change-Id: Id7b7e68b76c7207ae2ed4c91fc5a18673818bb3c
Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>