Fix for linux/darwin dependancies for gems

Bundler doesn't have platform based groups yet unfortunately (I think there's a PR for it in their backlog somewhere?) so you have to add helper methods for it for now.

Works for me on my mac, and the linux method works on my Vagrant precise64 box (Ubuntu)