able to handle relative paths to libs (probably cannot handle windows full paths...)