remove unused includes and libraries from linking