Fixed build error on i64 and warnings for clang (travis build).