Make it work with lib_dirs