More mbstowcs overflow fixes. Again, byte count v. element count.
Replace min+max pairs with Maths::clamp.
String helper functions from filesystem branch
Use locale-independent case conversion in String.h (ASCII-only)
Rename a lot of C files which are only being compiled as C++.
Ignore renamed native VM shared objects.
Rename a few files which are used in QVM code ad fix up.
Replace const std::string& with Str::StringRef in some places
Fix forwarding of variadic templates
Fix some compile errors
Replace auto_ptr with unique_ptr in translation code
Allow switching renderers with vid_restart
Fix std::max compile error

The parameters to std::max need to be the same type to comply with the template definition
Define NOMINMAX to prevent macros in WinDef.h causing problems with std::min/max usage
Properly fix compile error
Merge remote-tracking branch 'remotes/origin/master' into gameplay/viech
Disable jetpack proportional to damage received, regardless of damage source.