64bit fixes for the tta decoder, sizeof(long) is 8 on amd64, 4 on x86, the patch