Builds now with ubuntu, but segfaults.