Added loader generation and invocation to KTrace