made *nix autodetect the libdirs