Fix build errors on LP64 environment.