Remove libraries from root scope (fix #463)