Fix compile errors on linux 64-bit