[compiler] Fix 64bit compile time errors