Partial fix for building w/ libcxxrt on OSX. Patch from C Bergstrom.