Fix a loop closure bug in the weapons code.

Fixes #6597. Fixes #6599.
Minor style fixes.
Merge pull request #6612 from pchote/fix-warheads

Fix a loop closure bug in the weapons code.
build with latest Mono from @Xamarin
Merge pull request #6605 from Mailaender/travis-mono-latest

Build releases with latest Mono