Adapt to int/sal_Int32 mismatch on 32-bit build

Change-Id: I9c5cb458ea7595c1b623ce14ed58fd3d5b3d961e
Blind fix for C2491: definition of dllimport function not allowed

Change-Id: I81e89126a7721e50fb07a99e582de792cdc480dd