Fix 64bit compilation warnings