Fix compilation on 64-bit. Fixes #313.