Avoid racy bufferevent activation

The evhttp_send_reply method invokes evhttp_write_buffer with a
callback that may release the underlying request object and
bufferevent upon completion. This cleanup callback is invoked by the
underlying bufferevent's write callback. Improperly enabling write
events before referencing the bufferevent could lead to use after free
and memory corruption.
Fix a compiler warning when checking for arc4random_buf linker breakage.

Patch by Ralph Castain.
Fix another arc4random_buf-related warning