Fix alignment issue on 64-bit. Solution from Steve Ortiz.