Fix warnings when compiling on 64-bit systems

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>