Fix sample compilation issues.