Make compile on FreeBSD 9.0

Hey, this is needed to make the code compile on my FreeBSD 9.0 box.

# node -v
v0.6.17

# npm -v
1.1.21

# pkg_cutleaves -l | egrep '(v8|db)'
db48-4.8.30.0
v8-3.7.3