Compile with compatibility for Mac OS 10.6 and above

Fixes #276.