Fix and document compile options on Darwin.