Fix compilation warnings/error on 32bit [Victor Julien].