Build fixes for 32 bit systems.

Signed-off-by: Frank Mertens <frank@cyblogic.de>