Implemented workaround for buggy pthread_get_stacksize_np() on OSX 10.9 and iOS 7. (#274)