Fix build script for sample.