Remove target and libraries