get BasicBinaryInputStream working for gcc 4.7.2