cleaned up cuda lib stuff