Make addLibrary work for scala task.