Use rb_thread_call_without_gvl instead of gvl2
fix a few types
cast to size_t from long
Merge pull request #3 from Sirupsen/gvl

Use rb_thread_call_without_gvl instead of gvl2