Updates to build scripts to allow examples to build.