Fix README code snippets so that they're compilable.