Fix build / runtime breaks in sample