Warn if usFunctionGenerateModuleInit() is used for executables.
Check length before calling std::equal().

The std::equal function of MSVC9 failes if the second container's range is shorter than the first container's range.
Check for length first!