Fix building samples