Fix C extension on older versions of Mac OS X

Resolves #15