Link with required libraries only