adding support for adding/removing from library search paths
fixed failing tests and added test for adding/removing from lib search paths.