Build with the $RDYNAMIC flag on Darwin as well as other platforms.

Part of <rdar://problem/14620988>