Meterpreter railgun multi call fix

Modifications accommodate changes in the multi-call railgun code that
were made to Meterpreter.

This also includes a fix for Redmine 8269, so the Windows constants
now work correctly with the multi-calls.
Land #2458, OJ's Meterpreter railgun multi call fix
also [FixRM #8269]