Improve linux support.
Merge pull request #79 from alistair/linux_improvements

improve linux support for build and gem install.