ann: Fix compilation in mavericks

Closes #425.