fixed warnings when using 32-bit architecture