Use autoconf to probe for arc4random and arc4random_buf.

This fixes the build on OSX 10.6, which has the former but not the latter.