Fixes for define() in node