Added checks for libraries and headers files