fix extracting bits from Bitstream64

the expression (1 << amount) is of type int, thats why the mask is at most 4 byte wide instead of 8 byte, so use the right data type and everything is fine