fix the build for versions later than 0.7.8
use gyp for compiling