Fix ledger --HEAD to build on OS X 10.9.

Tested on OS X 10.7 and OS X 10.9.