make ruby work on ubuntu

Adds support for ruby 1.8, 1.9 and 2.0 on ubuntu. 2.0 is only supported on versions of ubuntu which actually provide it. 

Non-ubuntu platforms are not supported, but a few issues have been added to rectify that.