select required libraries when linking application