Duplicate checks for libs and flags are added