Fix all C4267 warnings in Shared

Signed-off-by: Neo2003 <Neo.2003@Hotmail.fr>