NODE: Fix segfault on exit if built with gyp (incorrect novalibs link order)

Ticket #811