add switch to override stdlib implementation on OS X < 10.9