Resolve compiler errors with example code in README.