Use the correct standard library version on OS X.

Fixes #1.