add -lib directives