installing node.js on OS X (mountain lion) with homebrew: Could not autodetect OpenSSL support

I need to install node 0.6 on OS X Mountain Lion. homebrew seems the easiest route (building from source failed to link). With the command:

brew install node

It's complaining with the following:

Checking for library dl                  : yes 
Checking for openssl                     : not found 
Checking for function SSL_library_init   : not found 
Checking for header openssl/crypto.h     : not found 
/private/tmp/node-x1II/node-v0.6.19/wscript:386: error: 

Could not autodetect OpenSSL support. 
Make sure OpenSSL development packages are installed. 
Use configure --without-ssl to disable this message.

However, openssl seems to be installed:

> openssl version
OpenSSL 0.9.8r 8 Feb 2011

What magical bit needs to be in place for homebrew to see openssl?