switch from wscript to binding.gyp and leverage a couple of C hacks to prevent the compiler from making over-optimizations (so code works even w/o -O0)