node 0.8 compat tweaks