Move msvcstub.h header file to common dir
Fix compilation with gcc and remove warinigs from system eaders