Updated to build on ruby 2.0.0 (fixes #5), various cleanup.