Fixed linkage of COFF (win32) object file
Fixed TSRM related issues