ported battlegrounds from mangosR2 - restored *nix build