Add buffer tree support for the osx writer.