sizeof(long) is hard