Added support for link library.
Merge branch 'master' into api-1.1