add support for --libraries too