Fix all C4267 warnings in realmd

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