Only import libraries used by current config