Add GCC 4.8 compilation support to the 3.11 branch

Same as the one for the `master` branch, this PR adds the necessary
patches for GCC 4.8 compilation, disables the building of v8's tests
and adds a `rake patch` task.