Added code for linking pdmc with krun