Select the right library