improve linux support for build and gem install.

This brings the bottle script in line with ripple by checking the RUBY_PLATFORM to determine whether mono should be used or not.

Also cleaned up some path sensitive errors in csproj files as well as src/SampleService/SampleService.csproj containing duplicate ProjectReferences.