Upgrade the main build and all the Gradle-based samples other than the Gradle sample to Gradle 4.3. Closes gh-446