Fix some undefined includes or functions
Fix a C2512 error
Fix C2664, C2027, C2227 errors
Fix code source mode

Even when filename and moduleName were empty, a findModule was done
and throws an exception preventing moduleSource to be use instead.

Signed-off-by: mfe <mfe@mikrosimage.eu>
Merge branch 'mfe_master_fixSourceCodeMode' into tuttle_develop