Fixed constructor of shared_lib so it now works with both absolute and relative paths.