updated the lib checks and added individual libs variables per target