apply patch from http://blog.riemann.cc/2013/01/05/patching-ruby-gsl/