Add missing using declarations

This fixes using std::tr1::regex for non-MSVC compilers.
Do not warn about changed modules when changing modules.

Part of #9356
Also fixes #9365