Changed n-body to use the new Foreign.Export API.