more lib_dir fixes