Fix 64-bit erlang build