Fixed cplusplus extern defines in header files
Added threading modlue to VS project files