added --enable-shared support for building libnode.so