Make the build process honor libv8 compatibility

Make sure we require the correct version of the libv8 gem, and also clean up some unused code.