Fix segfault on ruby >=1.9 when calling putspent

Use the convenience function rb_io_stdio_file to grab the stdio file handle instead of directly using the stdio_file member
Merge pull request #13 from caleb/fix-putspent-segfault

Fix segfault on ruby >=1.9 when calling putspent