Compilation works on Mac, and all relevant tests pass.