Make examples compile on a modern system