added interface for tgInitAsTarget
Signed-off-by: Armin Wieser <armin.wieser@gmail.com>