add leakcheck script
rename linkdef (for no good reason)