fixing some 64 bit compiler warnings

Signed-off-by: Ondrej Rafaj <ondrej.rafaj@fuerteint.com>