.
Works with new terra and compiles on OS X